<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/3/22
 * Time: 15:41
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

namespace app\api\controller\v1;

use app\admin\model\BuddhaBuddha;
use app\common\lib\Show;
use app\common\lib\Status;

class Buddha extends Base
{
    public function getBuddhaByList(){
        $buddha = (new BuddhaBuddha())->getBaseById(1);
        if(!$buddha){
            return Show::json_show(Status::mini_error,"查询失败");
        }
        $lists = $buddha->toArray();
        $lists['description'] = htmlspecialchars_decode($lists['description']);
        return Show::json_show(Status::mini_normal,"ok",$lists);
    }
}